package com.bio.action.workflow;

import java.io.Serializable;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/workflow")
@Results( {
		@Result(name = "list", location = "/WEB-INF/views/workflow/listOrders.jsp", type = "dispatcher"),
		@Result(name = "listDetail", location = "/WEB-INF/views/workflow/listDetail.jsp", type = "dispatcher"),
		@Result(name = "tolist", location = "workflow!list", type = "redirect"),
		@Result(name = "addOrder", location = "/WEB-INF/views/workflow/addOrder.jsp", type = "dispatcher"),
		@Result(name = "approveOrder", location = "/WEB-INF/views/workflow/approveOrder.jsp", type = "dispatcher"),
		@Result(name = "listStock", location = "/WEB-INF/views/workflow/listStock.jsp", type = "dispatcher"),
		@Result(name = "listShipment", location = "/WEB-INF/views/workflow/listShipment.jsp", type = "dispatcher"),
		@Result(name = "feedbackOrder", location = "/WEB-INF/views/workflow/feedbackOrder.jsp", type = "dispatcher"),
		@Result(name = "edit", location = "/WEB-INF/views/workflow/editWorkflow.jsp", type = "dispatcher"),
		@Result(name = "add", location = "/WEB-INF/views/workflow/addWorkflow.jsp", type = "dispatcher")
		})
public class WorkflowAction extends ActionSupport implements Serializable{

	private static final long serialVersionUID = 336165974133512495L;

	public String list(){
		return "list";
	}
	
	public String listDetail(){
		return "listDetail";
	}
	
	public String addOrder(){
		return "addOrder";
	}
	
	public String approveOrder(){
		return "approveOrder";
	}
	
	public String listStock(){
		return "listStock";
	}
	
	public String listShipment(){
		return "listShipment";
	}
	
	public String feedbackOrder(){
		return "feedbackOrder";
	}
}
